﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Model;

namespace GataBaseSys
{
    public partial class UserZhu : System.Web.UI.Page
    {
        SignInBLL sbll = new SignInBLL();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            SignIn si = new SignIn();
            si.SignInName = this.name.Value.Trim();
            si.SignInPwd = this.pwd.Value.Trim();
            si.SignInState = this.DropDownList1.SelectedItem.Text;
            if (sbll.InserSin(si))
            {
                Response.Write("<script>alert('用户添加成功')</script>");
            }
            else
            {
                Response.Write("<script>alert('失败')</script>");
            }
        }
    }
}